So that can show OBU info even it doesn't have decomposed content. And add OBU content status into the message.
Unified · Split
| @@ -1200,11 +1200,12 @@ static int av1_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame) · 1199 unmodified lines | |||
| 1200 | AV1RawOBU *obu = unit->content; | 1200 | AV1RawOBU *obu = unit->content; |
| 1201 | const AV1RawOBUHeader *header; | 1201 | const AV1RawOBUHeader *header; |
| 1202 | 1202 | ||
| 1203 | av_log(avctx, AV_LOG_DEBUG, "OBU idx:%d, type:%d, content available:%d.\n", i, unit->type, !!obu); | ||
| 1204 | |||
| 1203 | if (!obu) | 1205 | if (!obu) |
| 1204 | continue; | 1206 | continue; |
| 1205 | 1207 | ||
| 1206 | header = &obu->header; | 1208 | header = &obu->header; |
| 1207 | av_log(avctx, AV_LOG_DEBUG, "Obu idx:%d, obu type:%d.\n", i, unit->type); | ||
| 1208 | 1209 | ||
| 1209 | switch (unit->type) { | 1210 | switch (unit->type) { |
| 1210 | case AV1_OBU_SEQUENCE_HEADER: | 1211 | case AV1_OBU_SEQUENCE_HEADER: |