dwbuiten / FFmpeg

mirror of git://git.videolan.org/ffmpeg.git
http://ffmpeg.org
Other
0 stars 1 forks source link

12bit mjpeg fails #4

Closed michaelni closed 8 years ago

michaelni commented 8 years ago

./ffplay tickets/4683/12bpp.jpg

looks quite bad, seems to be ok before the codecpar stuff sameple at: https://trac.ffmpeg.org/raw-attachment/ticket/4683/12bpp.jpg

dwbuiten commented 8 years ago

Sample?

michaelni commented 8 years ago

i think the 12 bits per sample are lost somewhere

michaelni commented 8 years ago

i see: (but maybe unrelated) Stream #0:0: Video: mjpeg, gray16le(12 bpc, bt470bg/unknown/unknown), 999x749 [SAR 300:300 DAR 999:749], 25 tbr, 25 tbn, 25 tbc vs. Stream #0:0: Video: mjpeg, gray16le(bt470bg/unknown/unknown), 999x749 [SAR 300:300 DAR 999:749], 25 tbr, 25 tbn

michaelni commented 8 years ago

this issue disappears if avctx->bits_per_raw_sample = 12; is set at the top of mjpeg decoder init

michaelni commented 8 years ago

this might be a issue unrelated to codec par, iam not sure yet

michaelni commented 8 years ago

Not an issue in codec par, ill push a fix to master