Commit Graph
100 Commits
Author SHA1 Message Date
Anton Khirnov c255f0b001 avconv: initialize hwaccel_pix_fmt
Fixes an assertion failure in vdpau_get_buffer() when -hwaccel auto is
used, but hwaccel init fails.
2013-12-03 18:11:27 +01:00
Anton Khirnov 089fac77a6 alsa-audio-dec: explicitly cast the delay to a signed int64
Otherwise the expression will be evaluated as unsigned, which will break
when the result should be negative.
CC:libav-stable@libav.org
2013-12-03 12:04:26 +01:00
Anton Khirnov e026ee0446 mpeg4videodec: move sprite_{shift,traj} from MpegEncContext to Mpeg4DecContext 2013-11-29 17:37:16 +01:00
Anton Khirnov 513d849bb6 mpeg4videodec: move num_sprite_warping_points from MpegEncContext to Mpeg4DecContext 2013-11-29 17:36:57 +01:00
Anton Khirnov 9ba3fc3e3d mpeg4videodec: move sprite_brightness_change from MpegEncContext to Mpeg4DecContext 2013-11-29 17:36:43 +01:00
Anton Khirnov 58c120a929 mpeg4videodec: move scalability from MpegEncContext to Mpeg4DecContext 2013-11-29 17:36:28 +01:00
Anton Khirnov 6e81597d5a mpeg4videodec: move enhancement_type from MpegEncContext to Mpeg4DecContext 2013-11-29 17:36:05 +01:00
Anton Khirnov 2992afda83 mpeg4videodec: remove a write-only variable from MpegEncContext 2013-11-29 17:35:57 +01:00
Anton Khirnov 3b1c0f686d mpeg4videodec: move new_pred from MpegEncContext to Mpeg4DecContext 2013-11-29 17:35:13 +01:00
Anton Khirnov e89247debd mpeg4videodec: replace MpegEncContext.reduced_res_vop with a local variable 2013-11-29 17:34:34 +01:00
Anton Khirnov 8cebc9eaac mpeg4videodec: remove a write-only variable from MpegEncContext 2013-11-29 14:19:48 +01:00
Anton Khirnov b1aacd5668 mpeg4videodec: move t_frame from MpegEncContext to Mpeg4DecContext 2013-11-29 14:19:48 +01:00
Anton Khirnov 0388907400 mpeg4videodec: move cplx_estimation_* fields from MpegEncContext to Mpeg4DecContext 2013-11-29 14:19:48 +01:00
Anton Khirnov 43af264de8 mpeg4videodec: move mpeg4-specific bug workaround variables from MpegEncContext to Mpeg4DecContext 2013-11-29 14:19:48 +01:00
Anton Khirnov e2ceb17642 mpeg4videodec: move mpeg4-specific post-frame-decode code from h264dec to mpeg4videodec 2013-11-29 14:19:47 +01:00
Anton Khirnov b452d5ae86 mpeg4videodec: move mpeg4-specific bug detection from h263 generic code to mpeg4 2013-11-29 14:19:47 +01:00
Anton Khirnov 48e1394095 mpeg4videodec: move MpegEncContext.resync_marker into Mpeg4DecContext. 2013-11-29 14:19:47 +01:00
Anton Khirnov c2f7417eeb vc1: move MpegEncContext.resync_marker into VC1Context.
The field still remains in MpegEncContext because it is used by the
mpeg4 decoder.
2013-11-29 14:19:47 +01:00
Anton Khirnov a5a71992ca mpeg4videoenc: don't set MpegEncContext.resync_marker
It is only used in one place immediately after it is set.
2013-11-29 14:19:47 +01:00
Anton Khirnov ad09f52586 h263dec: remove commented out cruft 2013-11-29 14:19:47 +01:00
Anton Khirnov bc5abfb19e mpeg4videodec: move MpegEncContext.rvlc to Mpeg4DecContext 2013-11-29 14:19:47 +01:00
Anton Khirnov 9f0617d213 mpeg4videodec: remove write-only sprite variables from MpegEncContext 2013-11-29 14:19:47 +01:00
Anton Khirnov 1a89025793 mpeg4videodec: move MpegEncContext.vol_sprite_usage to Mpeg4DecContext 2013-11-29 14:19:47 +01:00
Anton Khirnov 75bd07f732 mpeg4videoenc: write 0 instead of vol_sprite_usage
That field is never set for encoding.
2013-11-29 14:19:47 +01:00
Anton Khirnov e62a43f6b1 mpeg4videodec: move MpegEncContext.time_increment_bits to Mpeg4DecContext
The field remains in MpegEncContext for use in the encoder.
2013-11-29 14:19:47 +01:00
Anton Khirnov ee8af2dd99 mpeg4videodec: move MpegEncContext.shape to Mpeg4DecContext 2013-11-29 14:19:47 +01:00
Anton Khirnov 35e0833d41 mpeg4videodec: add a mpeg4-specific private context. 2013-11-29 14:19:47 +01:00
Anton Khirnov 95fd52c11b mxfdec: set extradata size
The line setting it was mistakenly removed in
ecf442a58b
2013-11-29 14:19:47 +01:00
Anton Khirnov 8733799392 h263dec: sanitize a condition.
Call ff_mpeg4_decode_picture_header() only when the decoder has the
MPEG4 codec id, not based on a vaguely related value of h263_pred.
2013-11-27 22:24:50 +01:00
Anton Khirnov 4d388c0cd0 h264_refs: make sure not to write over the bounds of the default ref list
Fixes invalid writes.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2013-11-27 22:24:40 +01:00
Anton Khirnov c6080d8900 lavc: remove mp3_header_(de)compress bitstream filters
They mangle the mp3 header in a non-standard way to save a few bytes.
People who care about space so much should just use a more efficient
codec.
2013-11-26 09:27:50 +01:00
Anton Khirnov 7671dd7cd7 avconv: add support for VDPAU decoding 2013-11-23 11:55:53 +01:00
Anton Khirnov 07fd0a2219 avconv: add infrastructure for using hwaccels 2013-11-23 11:55:43 +01:00
Anton Khirnov 430d121964 pcx: round up in bits->bytes conversion in a buffer size check
Fixes invalid reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2013-11-21 20:58:27 +01:00
Anton Khirnov c918e08b9c truemotion1: make sure index does not go out of bounds
Fixes invalid reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2013-11-21 20:58:08 +01:00
Anton Khirnov ce9bba5340 avidec: fix a memleak in the dv init code.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2013-11-21 20:57:58 +01:00
Anton Khirnov de4ec972c0 vc1: fix a memleak.
Happens on a B-frame when neither low_delay nor last_picture_ptr is set
(probably corrupted streams only).

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
2013-11-21 20:57:36 +01:00
Anton Khirnov ca41c72c6d motionpixels: clip VLC codes.
Fixes invalid reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2013-11-21 20:57:20 +01:00
Anton Khirnov 30be1ea33e matroskadec: pad EBML_BIN data.
It might be passed to code requiring padding, such as lzo decompression.

Fixes invalid reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2013-11-21 20:54:30 +01:00
Anton Khirnov f0259a587e h264: check buffer size before accessing it
Fixes invalid reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2013-11-21 20:54:20 +01:00
Anton Khirnov 1f3e56b6dc gifdec: convert to bytestream2 2013-11-21 20:53:06 +01:00
Anton Khirnov c453723ad7 gifdec: check that the image dimensions are non-zero
Also add an error message an return a more suitable error code
(INVALIDDATA, not EINVAL);
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2013-11-21 20:52:42 +01:00
Anton Khirnov 074c769de9 h264_cavlc: check the size of the intra PCM data.
Fixes invalid reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
2013-11-21 20:52:34 +01:00
Anton Khirnov a553c6a347 lavc: use buf[0] instead of data[0] in checks whether a frame is allocated
data[0] may be NULL for valid frames with hwaccel pixel formats.
2013-11-18 18:09:48 +01:00
Anton Khirnov 1c01b0253e mpegvideo_enc: use the AVFrame API properly. 2013-11-16 17:51:10 +01:00
Anton Khirnov a6064b12b4 ffv1: use the AVFrame API properly. 2013-11-16 17:50:51 +01:00
Anton Khirnov 706a92926c jpegls: use the AVFrame API properly. 2013-11-16 17:50:28 +01:00
Anton Khirnov 14b35bf065 huffyuv: use the AVFrame API properly. 2013-11-16 17:50:20 +01:00
Anton Khirnov ffe04c3303 libxvid: use the AVFrame API properly. 2013-11-16 17:50:09 +01:00
Anton Khirnov 863a670e48 pcxenc: use the AVFrame API properly. 2013-11-16 17:49:47 +01:00
Anton Khirnov 7ca97aa7ee roqvideo: remove unused variables 2013-11-16 17:49:40 +01:00
Anton Khirnov 372262853b libschroedingerenc: use the AVFrame API properly. 2013-11-16 17:49:31 +01:00
Anton Khirnov 97168b204a eatgv: use the AVFrame API properly. 2013-11-16 17:49:21 +01:00
Anton Khirnov b18c7c8d3d libxavs: use the AVFrame API properly. 2013-11-16 17:49:15 +01:00
Anton Khirnov 5290e02a0a nuv: use the AVFrame API properly. 2013-11-16 17:49:02 +01:00
Anton Khirnov d56a114adc flashsvenc: use the AVFrame API properly. 2013-11-16 17:48:14 +01:00
Anton Khirnov 57e7b3a89f dnxhdenc: use the AVFrame API properly. 2013-11-16 17:47:58 +01:00
Anton Khirnov d2287740d9 libx264: use the AVFrame API properly. 2013-11-16 17:47:50 +01:00
Anton Khirnov 394ef4d18f svq1enc: use the AVFrame API properly. 2013-11-16 17:47:34 +01:00
Anton Khirnov 219b35f5d1 gif: use the AVFrame API properly. 2013-11-16 17:47:25 +01:00
Anton Khirnov 45bde93eef sunrastenc: use the AVFrame API properly. 2013-11-16 17:47:09 +01:00
Anton Khirnov fb26d76167 targaenc: use the AVFrame API properly. 2013-11-16 17:46:51 +01:00
Anton Khirnov f26f71139f tiffenc: use the AVFrame API properly. 2013-11-16 17:46:24 +01:00
Anton Khirnov 78c6c9d6c1 pngenc: use the AVFrame API properly. 2013-11-16 17:46:16 +01:00
Anton Khirnov 0ea430c75b lclenc: use the AVFrame API properly. 2013-11-16 17:46:01 +01:00
Anton Khirnov d48c206302 qtrleenc: use the AVFrame API properly. 2013-11-16 17:45:28 +01:00
Anton Khirnov c8a525197f ulti: use the AVFrame API properly. 2013-11-16 17:44:54 +01:00
Anton Khirnov 6792559f8a vc1: use the AVFrame API properly. 2013-11-16 17:44:40 +01:00
Anton Khirnov 042aec41ae flashsv: use the AVFrame API properly. 2013-11-16 17:44:04 +01:00
Anton Khirnov e4155f15b3 eamad: use the AVFrame API properly. 2013-11-16 17:43:55 +01:00
Anton Khirnov 4e7e8055a7 dpxenc: use the AVFrame API properly. 2013-11-16 17:43:36 +01:00
Anton Khirnov 2a85a192c7 bmpenc: use the AVFrame API properly. 2013-11-16 17:43:05 +01:00
Anton Khirnov 6a08d7fcc5 sgienc: use the AVFrame API properly. 2013-11-16 17:42:36 +01:00
Anton Khirnov 730bac7bab mss4: use the AVFrame API properly. 2013-11-16 17:42:23 +01:00
Anton Khirnov 207909911d mss3: use the AVFrame API properly. 2013-11-16 17:41:54 +01:00
Anton Khirnov e9198f61db mss2: use the AVFrame API properly. 2013-11-16 17:41:42 +01:00
Anton Khirnov acaffdca21 mss1: use the AVFrame API properly. 2013-11-16 17:41:32 +01:00
Anton Khirnov 508b37557b tiertexseqv: use the AVFrame API properly. 2013-11-16 17:41:07 +01:00
Anton Khirnov 68af7f54a6 smc: use the AVFrame API properly. 2013-11-16 17:40:57 +01:00
Anton Khirnov 32f7cf9bc3 truemotion2: use the AVFrame API properly. 2013-11-16 13:29:24 +01:00
Anton Khirnov 42d40fd28c truemotion1: use the AVFrame API properly. 2013-11-16 13:27:33 +01:00
Anton Khirnov 4a4841d4e0 fraps: use the AVFrame API properly. 2013-11-16 13:27:17 +01:00
Anton Khirnov e8ef8a328c rpza: use the AVFrame API properly. 2013-11-16 13:27:07 +01:00
Anton Khirnov e52f38bc2e motionpixels: use the AVFrame API properly. 2013-11-16 13:26:50 +01:00
Anton Khirnov aca214783a vmdvideo: use the AVFrame API properly. 2013-11-16 13:25:56 +01:00
Anton Khirnov 3c8ea9d4a7 vmnc: use the AVFrame API properly. 2013-11-16 13:25:29 +01:00
Anton Khirnov 04f30711d8 xan: use the AVFrame API properly. 2013-11-16 13:25:17 +01:00
Anton Khirnov f3cd23fbc8 xxan: use the AVFrame API properly. 2013-11-16 13:24:56 +01:00
Anton Khirnov 6886a85f5c zerocodec: use the AVFrame API properly. 2013-11-16 13:24:44 +01:00
Anton Khirnov a837c4f2df zmbvenc: use the AVFrame API properly. 2013-11-16 13:24:10 +01:00
Anton Khirnov d100f9e7cd flicvideo: use the AVFrame API properly. 2013-11-16 13:23:59 +01:00
Anton Khirnov 84099f51f3 smacker: use the AVFrame API properly. 2013-11-16 13:23:38 +01:00
Anton Khirnov 5c96f02901 mmvideo: use the AVFrame API properly. 2013-11-16 13:23:14 +01:00
Anton Khirnov 2e09096da9 kgv1: use the AVFrame API properly. 2013-11-16 13:23:05 +01:00
Anton Khirnov 79d501a860 indeo2: use the AVFrame API properly. 2013-11-16 13:21:02 +01:00
Anton Khirnov 4b8a194146 iff: use the AVFrame API properly. 2013-11-16 13:20:44 +01:00
Anton Khirnov c5dfb9033f msrle: use the AVFrame API properly. 2013-11-16 13:20:19 +01:00
Anton Khirnov 952f943d40 FATE: add a jv test 2013-11-16 13:20:06 +01:00
Anton Khirnov b7462a3904 jvdec: use the AVFrame API properly. 2013-11-16 12:52:54 +01:00
Anton Khirnov 2d2a92f721 dxa: use the AVFrame API properly. 2013-11-16 12:52:36 +01:00