What's p->encode when you have that id? Maybe you have an mpeg decoder
but not encoder.
Bruce
On Aug 25, 2009, at 10:15, Bruce Daniel <[email protected]> wrote:
At first it would seem that this problem would be caused by not
finding the
codec, and hitting line 12. I found out in debugging that for some
reason
the conditional on line 7 is analyzing to true for an empty AVCodec
p. It is
hitting line 8 when p is empty, and id is "CODEC_ID_MPEG2VIDEO" and
p->id is
empty.
The weird part is that when stepping through the codecs, on one of the
rotations, it does find a codec where p->id is
"CODEC_ID_MPEG2VIDEO", but
for some reason the conditional on line 7 does not analyze to true
in this
case. This seems very odd to me.
Any ideas?
(Excerpt from utils.c)
1 AVCodec *avcodec_find_encoder(enum CodecID id)
2 {
3 AVCodec *p;
4 p = first_avcodec;
5 while (p) {
6
7 if (p->encode != NULL && p->id == id)
8 return p;
9
10 p = p->next;
11 }
12 return NULL;
13 }
Bruce
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user