Unbreak 5ef7c84a9374681c64722a96d91741f3b990af2b
CC:[email protected]
---
Shame on me...
libavcodec/dxa.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c
index ddc31f3..ea31e71 100644
--- a/libavcodec/dxa.c
+++ b/libavcodec/dxa.c
@@ -255,12 +255,12 @@ static int decode_frame(AVCodecContext *avctx, void
*data, int *got_frame, AVPac
case 3:
case 4:
case 5:
- if (!tmpptr) {
+ frame->key_frame = !(compr & 1);
+ frame->pict_type = (compr & 1) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I;
+ if (!tmpptr && !frame->key_frame) {
av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
return AVERROR_INVALIDDATA;
}
- frame->key_frame = !(compr & 1);
- frame->pict_type = (compr & 1) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I;
for(j = 0; j < avctx->height; j++){
if(compr & 1){
for(i = 0; i < avctx->width; i++)
--
1.8.3.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel