History

avcodec/mlp: Fix bugs in libavs warning fixes

Michael Niedermayer committed 13 years ago

Commit 1607a981 parent 20be5e02 files · +3 −3Browse files

Unified · Split

2 files
  1. libavcodec/mlp_parser.c +2 −2
  2. libavcodec/mlpdec.c +1 −1
libavcodec/mlp_parser.c+2−2
@@ -337,8 +337,8 @@ FF_DISABLE_DEPRECATION_WARNINGS · 336 unmodified lines
337337 mh.num_substreams > 1) {
338338 avctx->channels = 2;
339339 avctx->channel_layout = AV_CH_LAYOUT_STEREO;
340− } else
341340 FF_ENABLE_DEPRECATION_WARNINGS
341+ } else
342342 #endif
343343 if (avctx->request_channel_layout == AV_CH_LAYOUT_STEREO &&
344344 mh.num_substreams > 1) {
@@ -360,8 +360,8 @@ FF_DISABLE_DEPRECATION_WARNINGS · 15 unmodified lines
360360 avctx->request_channels <= mh.channels_thd_stream1) {
361361 avctx->channels = mh.channels_thd_stream1;
362362 avctx->channel_layout = mh.channel_layout_thd_stream1;
363− } else
364363 FF_ENABLE_DEPRECATION_WARNINGS
364+ } else
365365 #endif
366366 if (avctx->request_channel_layout == AV_CH_LAYOUT_STEREO &&
367367 mh.num_substreams > 1) {
libavcodec/mlpdec.c+1−1
@@ -471,8 +471,8 @@ FF_DISABLE_DEPRECATION_WARNINGS · 470 unmodified lines
471471 "Further substreams will be skipped.\n",
472472 s->max_channel + 1, substr);
473473 m->max_decoded_substream = substr;
474− } else
475474 FF_ENABLE_DEPRECATION_WARNINGS
475+ } else
476476 #endif
477477 if (m->avctx->request_channel_layout == s->ch_layout &&
478478 m->max_decoded_substream > substr) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t