Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: source/patched-ffmpeg-mt/libavformat/rtpenc.c

Issue 2850032: ffmpeg update to june 23 version which fixes mp4 crash on still frames with 3... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/patched-ffmpeg-mt/libavformat/rtpenc.h ('k') | source/patched-ffmpeg-mt/libavformat/rtsp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/patched-ffmpeg-mt/libavformat/rtpenc.c
===================================================================
--- source/patched-ffmpeg-mt/libavformat/rtpenc.c (revision 50820)
+++ source/patched-ffmpeg-mt/libavformat/rtpenc.c (working copy)
@@ -131,6 +131,12 @@
s->max_payload_size = n * TS_PACKET_SIZE;
s->buf_ptr = s->buf;
break;
+ case CODEC_ID_H264:
+ /* check for H.264 MP4 syntax */
+ if (st->codec->extradata_size > 4 && st->codec->extradata[0] == 1) {
+ s->nal_length_size = (st->codec->extradata[4] & 0x03) + 1;
+ }
+ break;
case CODEC_ID_AMR_NB:
case CODEC_ID_AMR_WB:
if (!s->max_frames_per_packet)
« no previous file with comments | « source/patched-ffmpeg-mt/libavformat/rtpenc.h ('k') | source/patched-ffmpeg-mt/libavformat/rtsp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698