Mercurial > libavcodec.hg
comparison apiexample.c @ 5127:4dbe6578f811 libavcodec
misc spelling fixes
author | diego |
---|---|
date | Tue, 12 Jun 2007 09:29:25 +0000 |
parents | f58de1bdb675 |
children | 0134da1737d0 |
comparison
equal
deleted
inserted
replaced
5126:7982b376b58a | 5127:4dbe6578f811 |
---|---|
334 | 334 |
335 c= avcodec_alloc_context(); | 335 c= avcodec_alloc_context(); |
336 picture= avcodec_alloc_frame(); | 336 picture= avcodec_alloc_frame(); |
337 | 337 |
338 if(codec->capabilities&CODEC_CAP_TRUNCATED) | 338 if(codec->capabilities&CODEC_CAP_TRUNCATED) |
339 c->flags|= CODEC_FLAG_TRUNCATED; /* we dont send complete frames */ | 339 c->flags|= CODEC_FLAG_TRUNCATED; /* we do not send complete frames */ |
340 | 340 |
341 /* for some codecs, such as msmpeg4 and mpeg4, width and height | 341 /* For some codecs, such as msmpeg4 and mpeg4, width and height |
342 MUST be initialized there because these info are not available | 342 MUST be initialized there because this information is not |
343 in the bitstream */ | 343 available in the bitstream. */ |
344 | 344 |
345 /* open it */ | 345 /* open it */ |
346 if (avcodec_open(c, codec) < 0) { | 346 if (avcodec_open(c, codec) < 0) { |
347 fprintf(stderr, "could not open codec\n"); | 347 fprintf(stderr, "could not open codec\n"); |
348 exit(1); | 348 exit(1); |