[FFmpeg-trac] #284(FFmpeg:open): Mpg format can not be converted to any other format
FFmpeg
trac at avcodec.org
Sat Jun 18 00:51:46 CEST 2011
#284: Mpg format can not be converted to any other format
------------------------+----------------------
Reporter: yxmline | Owner: michael
Type: defect | Status: open
Priority: normal | Component: FFmpeg
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced: 0
Analyzed: 0 |
------------------------+----------------------
Comment (by michael):
Please try if the patch below fixes it (and threads still work)
thx
{{{
--- a/libavcodec/w32thread.c
+++ b/libavcodec/w32thread.c
@@ -135,11 +135,11 @@ int ff_thread_init(AVCodecContext *s){
return 0;
}
- s->active_thread_type= FF_THREAD_SLICE;
-
if (s->thread_count <= 1)
return 0;
+ s->active_thread_type= FF_THREAD_SLICE;
+
assert(!s->thread_opaque);
c= av_mallocz(sizeof(ThreadContext)*s->thread_count);
s->thread_opaque= c;
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/284#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list