Skip to content

Commit

Permalink
Merge pull request #3208 from FernetMenta/audiostream
Browse files Browse the repository at this point in the history
dvdplayer: fix accurate seek
  • Loading branch information
FernetMenta committed Sep 10, 2013
2 parents ba5e5e5 + e1c11b9 commit 1b5ed56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ffmpeg/libavcodec/h264.c
Expand Up @@ -4523,8 +4523,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size,
first_slice = hx->nal_unit_type; first_slice = hx->nal_unit_type;
} }


// FIXME do not discard SEI id if (avctx->skip_frame >= AVDISCARD_NONREF && h->nal_ref_idc == 0 && h->nal_unit_type != NAL_SEI)
if (avctx->skip_frame >= AVDISCARD_NONREF && h->nal_ref_idc == 0)
continue; continue;


again: again:
Expand Down
@@ -0,0 +1,14 @@
diff --git a/lib/ffmpeg/libavcodec/h264.c b/lib/ffmpeg/libavcodec/h264.c
index 85f2372..1cab49f 100644
--- a/lib/ffmpeg/libavcodec/h264.c
+++ b/lib/ffmpeg/libavcodec/h264.c
@@ -4523,8 +4523,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size,
first_slice = hx->nal_unit_type;
}

- // FIXME do not discard SEI id
- if (avctx->skip_frame >= AVDISCARD_NONREF && h->nal_ref_idc == 0)
+ if (avctx->skip_frame >= AVDISCARD_NONREF && h->nal_ref_idc == 0 && h->nal_unit_type != NAL_SEI)
continue;

again:

0 comments on commit 1b5ed56

Please sign in to comment.